package com.alks.entity.data.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author: chen
 * @date: 2024/12/12
 * @description: 月份枚举类
 */
@Getter
public enum MonthEnum {

    // 定义每个月份的枚举实例
    JAN(1, "01", "Jan", "一月"),
    FEB(2, "02", "Feb", "二月"),
    MAR(3, "03", "Mar", "三月"),
    APR(4, "04", "Apr", "四月"),
    MAY(5, "05", "May", "五月"),
    JUN(6, "06", "Jun", "六月"),
    JUL(7, "07", "Jul", "七月"),
    AUG(8, "08", "Aug", "八月"),
    SEP(9, "09", "Sep", "九月"),
    OCT(10,"10", "Oct", "十月"),
    NOV(11,"11", "Nov", "十一月"),
    DEC(12,"12", "Dec", "十二月");

    ;

    MonthEnum(Integer index, String month, String monthEn, String monthCn) {
        this.index = index;
        this.month = month;
        this.monthEn = monthEn;
        this.monthCn = monthCn;
    }

    /**
     * 序号
     */
    private Integer index;

    /**
     * 格式化月份 MM
     */
    private String month;

    /**
     * 月份英文名
     */
    private String monthEn;

    /**
     * 月份中文名
     */
    private String monthCn;

}
